package com.jxdinfo.hussar.example.sbjx.teststru.model;

import com.jxdinfo.hussar.platform.core.base.entity.BaseEntity;
import org.apache.ibatis.type.Alias;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;

/**
 * 组织结构树实体类
 */
@Alias("sbjx.teststru.TestStru")
@TableName("test_stru")
public class TestStru implements BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 机构编码
     */
    @TableId("STRU_ID")
    private Long struId;

    /**
     * 机构类型
     */
    @TableField("STRU_TYPE")
    private String struType;

    /**
     * 组织编码
     */
    @TableField("ORGAN_ID")
    private Long organId;

    /**
     * 组织别名
     */
    @TableField("ORGAN_ALIAS")
    private String organAlias;

    /**
     * 上级机构编码
     */
    @TableField("PARENT_ID")
    private Long parentId;

    /**
     * 负责人组织编码
     */
    @TableField("PRINCIPAL_ID")
    private Long principalId;

    /**
     * 所属法人组织编码
     */
    @TableField("CORPORATION_ID")
    private String corporationId;

    /**
     * 级别
     */
    @TableField("STRU_LEVEL")
    private Integer struLevel;

    /**
     * 全主键ID
     */
    @TableField("STRU_FID")
    private String struFid;

    /**
     * 全排序编号
     */
    @TableField("STRU_SEQ")
    private String struSeq;

    /**
     * 树形编码
     */
    @TableField("STRU_PATH")
    private String struPath;

    /**
     * 成员局部排序值
     */
    @TableField("STRU_ORDER")
    private Integer struOrder;

    /**
     * 成员全局排序值
     */
    @TableField("GLOBAL_ORDER")
    private Integer globalOrder;

    /**
     * 是否是叶子节点
     */
    @TableField("IS_LEAF")
    private String isLeaf;

    /**
     * 使用标识
     */
    @TableField("DEL_FLAG")
    private String delFlag;

    /**
     * 所属部门组织编码
     */
    @TableField("DEPARTMENT_ID")
    private String departmentId;

    /**
     * 所属权限组织编码
     */
    @TableField("PERMISSION_STRU_ID")
    private Long permissionStruId;

    /**
     * 行政区代码
     */
    @TableField("PROVINCE_CODE")
    private String provinceCode;

    /**
     * 创建者
     */
    @TableField("CREATOR")
    private Long creator;

    /**
     * 创建时间
     */
    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    /**
     * 上次编辑者
     */
    @TableField("LAST_EDITOR")
    private Long lastEditor;

    /**
     * 上次编辑时间
     */
    @TableField("LAST_TIME")
    private LocalDateTime lastTime;

    /**
     * 是否为职工
     */
    @TableField("IS_EMPLOYEE")
    private String isEmployee;

    /**
     * 职务编码
     */
    @TableField("STAFF_POSITION")
    private String staffPosition;

    public Long getStruId() {
        return struId;
    }

    public void setStruId(Long struId) {
        this.struId = struId;
    }

    public String getStruType() {
        return struType;
    }

    public void setStruType(String struType) {
        this.struType = struType;
    }

    public Long getOrganId() {
        return organId;
    }

    public void setOrganId(Long organId) {
        this.organId = organId;
    }

    public String getOrganAlias() {
        return organAlias;
    }

    public void setOrganAlias(String organAlias) {
        this.organAlias = organAlias;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Long getPrincipalId() {
        return principalId;
    }

    public void setPrincipalId(Long principalId) {
        this.principalId = principalId;
    }

    public String getCorporationId() {
        return corporationId;
    }

    public void setCorporationId(String corporationId) {
        this.corporationId = corporationId;
    }

    public Integer getStruLevel() {
        return struLevel;
    }

    public void setStruLevel(Integer struLevel) {
        this.struLevel = struLevel;
    }

    public String getStruFid() {
        return struFid;
    }

    public void setStruFid(String struFid) {
        this.struFid = struFid;
    }

    public String getStruSeq() {
        return struSeq;
    }

    public void setStruSeq(String struSeq) {
        this.struSeq = struSeq;
    }

    public String getStruPath() {
        return struPath;
    }

    public void setStruPath(String struPath) {
        this.struPath = struPath;
    }

    public Integer getStruOrder() {
        return struOrder;
    }

    public void setStruOrder(Integer struOrder) {
        this.struOrder = struOrder;
    }

    public Integer getGlobalOrder() {
        return globalOrder;
    }

    public void setGlobalOrder(Integer globalOrder) {
        this.globalOrder = globalOrder;
    }

    public String getIsLeaf() {
        return isLeaf;
    }

    public void setIsLeaf(String isLeaf) {
        this.isLeaf = isLeaf;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
    }

    public Long getPermissionStruId() {
        return permissionStruId;
    }

    public void setPermissionStruId(Long permissionStruId) {
        this.permissionStruId = permissionStruId;
    }

    public String getProvinceCode() {
        return provinceCode;
    }

    public void setProvinceCode(String provinceCode) {
        this.provinceCode = provinceCode;
    }

    public Long getCreator() {
        return creator;
    }

    public void setCreator(Long creator) {
        this.creator = creator;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Long getLastEditor() {
        return lastEditor;
    }

    public void setLastEditor(Long lastEditor) {
        this.lastEditor = lastEditor;
    }

    public LocalDateTime getLastTime() {
        return lastTime;
    }

    public void setLastTime(LocalDateTime lastTime) {
        this.lastTime = lastTime;
    }

    public String getIsEmployee() {
        return isEmployee;
    }

    public void setIsEmployee(String isEmployee) {
        this.isEmployee = isEmployee;
    }

    public String getStaffPosition() {
        return staffPosition;
    }

    public void setStaffPosition(String staffPosition) {
        this.staffPosition = staffPosition;
    }

    @Override
    public String toString() {
        return "testStru{" + "struId=" + struId + ", struType=" + struType + ", organId=" + organId + ", organAlias=" + organAlias + ", parentId=" + parentId + ", principalId=" + principalId + ", corporationId=" + corporationId + ", struLevel=" + struLevel + ", struFid=" + struFid + ", struSeq=" + struSeq + ", struPath=" + struPath + ", struOrder=" + struOrder + ", globalOrder=" + globalOrder + ", isLeaf=" + isLeaf + ", delFlag=" + delFlag + ", departmentId=" + departmentId + ", permissionStruId=" + permissionStruId + ", provinceCode=" + provinceCode + ", creator=" + creator + ", createTime=" + createTime + ", lastEditor=" + lastEditor + ", lastTime=" + lastTime + ", isEmployee=" + isEmployee + ", staffPosition=" + staffPosition + "}";
    }
}
